<html>
	<head>
		<title>Trombino</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="../js/jquery.min.js"></script>
		<script type="text/javascript">
		function saveRaison(auteur) {
			var p = {"auteur":auteur, "raison":"présent"};
			$.post("index/ecrire", p,
					 function(data){
						dataCloud = data;
					 }, "json");
		}
		
		</script>
	</head>
	<body >	
	Bravo
	<?php 
	echo"ça marche";
	foreach ($this->xml->channel->item as $item){
		echo "<img src='".$item->enclosure['url']."' onclick='saveRaison(this.src)' />";
		echo "<div>".$item->title."</div>";
	}
	?>
	</body>
</html>
